import request from "@/utils/http"

export function getEquipment(data: any) {
    return request({
        method: "get",
        url: "/biosample/equipment/list",
        params:data
    })
}

// 删除
export function deleteEquipment(data:any) {
    return request({
        method: "post",
        url: "/biosample/equipment/delete",
        data:data
        })
}
// 新增容器型号
export function addEquipmentmodel(data: any) {
    return request({
        method: "get",
        url: "/biosample/equipmentmodel/list",
        data: data
    })
}

// 新增容器组
export function addEquipmentgroup(data: any) {
    return request({
        method: "get",
        url: "/biosample/equipmentgroup/list",
        data: data
    })
}

// 新增确定
export function addSave(data: any) {
    return request({
        method: "post",
        url: "/biosample/equipment/save",
        data: data
    })
}

// 编辑打开
export function editEquipment(id: any) {
    return request({
        method: "get",
        url: "/biosample/equipment/detail-info/"+id,
        
    })
}

// 编辑更改
export function editSave(data: any) {
    return request({
        method: "post",
        url: "/biosample/equipment/update",
        data: data
    })
}
